package simple.demo.springintegration.demo.chapter5;

import org.springframework.integration.Message;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.integration.support.MessageBuilder;
import org.springframework.stereotype.Component;

@Component
public class E1 {

	@ServiceActivator
	public Message<String> send(Integer v)
	{
		return MessageBuilder.withPayload("hello world: " + v).build();
	}

}
